{{useCss "/app-pages/css/goods_list.scss"}}
<div class="mainbox">
    <div class="goods_list" style="margin:0">
        {{#if $Cache.searche.isresult}}
        <p>正在查找</p>
        {{#else}} {{#if $Cache.search.goods.length}}
        <p class="search_key">查找相关“<b>{{$Cache.search_key}}</b>”的商品结果</p>
        {{#each $Cache.search.goods}}
        <div class="listitem">
            <div class="goodsimg">
                <href to="/goods_details.html?id={{_id}}">
                    <img bind-src="{{preview_img_url}}?imageView/1/w/250/h/250" />
                </href>
            </div>
            <div class="box">
                <div class="addcart">
                    <div class="btn" event-click="{{'$Top.$Event.goods_list.add_to_cart'}}">
                        ￥{{#Fixed price+" "}}<i class="icon-basket"></i>
                    </div>
                </div>
                <div class="info">
                    <href to="/goods_details.html?id={{_id}}">
                        <b>{{goods_name+" "}}</b>
                        {{intro}}
                    </href>
                </div>
            </div>
        </div>
        {{/each}} {{#else}}
        <p>找不到相关“<b>{{$Cache.search_key}}</b>”的商品</p>
        {{/if}} {{/if}}
    </div>
</div>
